from rest_framework import serializers


from apps.goods.models import SKUImage, SKU


class SkuImageModelSerializer(serializers.ModelSerializer):
    """图片列表"""
    class Meta:
        model=SKUImage
        fields = "__all__"



class ImageSKUModelSerializer(serializers.ModelSerializer):
    """SKU序列化器"""
    class Meta:
        model=SKU
        fields=['id','name']